www.gusucode.com > VC++ 基于WebCam的视频采集及人脸检测识别-源码程序 > VC++ 基于WebCam的视频采集及人脸检测识别-源码程序/code/毕业设计/VideoCapture(04.5.31)/VideoCaptureDoc.cpp

    //Download by http://www.NewXing.com
// VideoCaptureDoc.cpp : implementation of the CVideoCaptureDoc class
//

#include "stdafx.h"
#include "VideoCapture.h"

#include "VideoCaptureDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CVideoCaptureDoc

IMPLEMENT_DYNCREATE(CVideoCaptureDoc, CDocument)

BEGIN_MESSAGE_MAP(CVideoCaptureDoc, CDocument)
	//{{AFX_MSG_MAP(CVideoCaptureDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CVideoCaptureDoc construction/destruction

CVideoCaptureDoc::CVideoCaptureDoc()
{
	// TODO: add one-time construction code here

}

CVideoCaptureDoc::~CVideoCaptureDoc()
{
}

BOOL CVideoCaptureDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CVideoCaptureDoc serialization

void CVideoCaptureDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CVideoCaptureDoc diagnostics

#ifdef _DEBUG
void CVideoCaptureDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CVideoCaptureDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CVideoCaptureDoc commands